import request from '@/utils/request.js'

export const searchStudent = (searchParams) => {
    return request({
        url: '/dormstu/live',
        method: 'post',
        data: searchParams
    })
}

export const addStudent = (addParams) => {
    return request({
        url: '/dormstu/live/add',
        method: 'post',
        data: addParams
    })
}

export const updateStudent = (updateParams) => {
    return request({
        url: '/dormstu/live/update',
        method: 'post',
        data: updateParams
    })
}

export const deleteStudent = (deleteParams) => {
    return request({
        url: '/dormstu/live/delete',
        method: 'post',
        data: deleteParams
    })
}
